import Layout from '@/layout/default/index.vue';

// 静态路由
export const constantRoutes = [
	{
		path: '/login',
		name: 'Login',
		component: () => import('@/views/login/index.vue'),
		meta: {
			title: '登录',
		},
	},
	{
		path: '/',
		redirect: '/dashboard',
		component: Layout,
		children: [
			{
				path: 'dashboard',
				name: 'Dashboard',
				component: () => import('@/views/dashboard/index.vue'),
				meta: {
					title: 'dashboard',
				},
			},
		],
	},
	{
		path: '/system',
		redirect: 'menu',
		component: Layout,
		children: [
			{
				path: 'menu',
				name: 'Menu',
				component: () => import('@/views/system/menu/index.vue'),
				meta: {
					title: 'menu',
				},
			},
			{
				path: 'role',
				name: 'Role',
				component: () => import('@/views/system/role/index.vue'),
				meta: {
					title: 'role',
				},
			},
			{
				path: 'user',
				name: 'User',
				component: () => import('@/views/system/user/index.vue'),
				meta: {
					title: 'user',
				},
			},
			{
				path: 'department',
				name: 'Department',
				component: () => import('@/views/system/department/index.vue'),
				meta: {
					title: 'department',
				},
			},
			{
				path: 'dictionary',
				name: 'Dictionary',
				component: () => import('@/views/system/dictionary/index.vue'),
				meta: {
					title: 'dictionary',
				},
			},
		],
	},
];

// 动态路由
export const asyncRoutes = [];
